<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多个复选框绑定</title>
</head>
<body>
    <script src="/js/vue.js"></script>
    <div id ="app">
      <h3>多个复选框使用时：</h3>
      <input id="jack" type="checkbox" value="Jack" v-model="checkedNames" >
      <label for="jack">Jack</label>
      <input id="john" type="checkbox" value="John" v-model="checkedNames" >
      <label for="john">John</label>
      <input id="mike" type="checkbox" value="Mike" v-model="checkedNames" >
      <label for="mike">Mike</label>
      <p > 姓名:{{checkedNames}}</p>
    </div>
    
    <script>
       let app =new Vue({
         el:"#app",
         data:{
           checkedNames:[]
         }
       })
    </script>  
</body>
</html>